<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Installer</title>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="">
        <meta name="author" content="">

        <!-- Le styles -->
        <link href="css/bootstrap.css" rel="stylesheet">
        <style type="text/css">
            body {
                padding-top: 40px;
                padding-bottom: 40px;
                background-color: #f5f5f5;
            }

            .form-signin {
                max-width: 800px;
                padding: 19px 29px 29px;
                margin: 0 auto 20px;
                background-color: #fff;
                border: 1px solid #e5e5e5;
                -webkit-border-radius: 5px;
                -moz-border-radius: 5px;
                border-radius: 5px;
                -webkit-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                -moz-box-shadow: 0 1px 2px rgba(0,0,0,.05);
                box-shadow: 0 1px 2px rgba(0,0,0,.05);
            }
            .form-signin .form-signin-heading,
            .form-signin .checkbox {
                margin-bottom: 10px;
            }
            .form-signin input[type="text"],
            .form-signin input[type="password"] {
                font-size: 16px;
                height: auto;
                margin-bottom: 0px;
                padding: 7px 9px;
            }

            .help-block.error{
                color: #CF0000;
            }

        </style>

        <script src="js/jquery.min.js"></script>
        <script src="js/bootstrap.min.js"></script>
    </head>

    <body>

        <div class="container">
            <?php
                if(Yii::app()->user->hasFlash('success')) {
                    foreach(Yii::app()->user->getFlash('success') as $key => $message) {
                        echo '<div class="alert alert-success">' . $message . "</div>\n";
                    }
                }
                if(Yii::app()->user->hasFlash('error')) {
                    foreach(Yii::app()->user->getFlash('error') as $key => $message) {
                        echo '<div class="alert alert-warning">' . $message . "</div>\n";
                    }
                }
            ?>

            <?php echo $content ?>

        </div> <!-- /container -->
    </body>
</html>
